package com.apps.controller;


import com.apps.controller.mode.TestModel;
import com.apps.smodule.model.po.ApiResult;
import com.apps.sworld.sApiController;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.*;

@Slf4j
@Api(description = "管理员全局接口")
@RestController
@RequestMapping("/api/admin")
public class AdminApiController implements sApiController
{

    @ApiOperation(value="首次登录修改密码",notes = "首次登录修改密码")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "pwd", value = "新密码",  required = true,dataType = "string", paramType = "query")})
    @PostMapping("/updatePassworldByFristLogin")
    public ApiResult<List<TestModel>> updatePassworld(@RequestParam(value = "pwd") String pwd) {
        ApiResult<List<TestModel>> result=new ApiResult<>();
        List<TestModel> data=new ArrayList<>();
        data.add(new TestModel());
        data.add(new TestModel());
        data.add(new TestModel());
        data.add(new TestModel());
        data.add(new TestModel());

        return result.success(data);
    }


//    public static void main(String... agrs)
//    {
//        String[] arr=null;
//        if(arr.getClass().isArray())
//            System.out.println("hello");
//    }
}
